package com.xpec.c4.db.model.log;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 針對player達到遊戲中埋的某個節點做log,統計用
 * @author Miriam_Chen
 *
 */
@Entity
@Table(name="character_action")

public class DBCharacterActionLog extends DBAbstractCharacterLog{
	/**
	 * 
	 */
	private static final long serialVersionUID = -8951494328104373924L;
	/**
	 * =CAction.actionId
	 * @see com.xpec.c4.db.model.log.CAction
	 **/
	private Integer actionId;
	/**
	 * 擴充保留欄位
	 * 如果這個action有紀錄在其專屬table,此欄位就放此action在該table的db_id
	 */
	private String actionRefDbId;
	/**
	 * 擴充保留欄位
	 * 用來記錄此action需記錄的參數
	 */
	private String parameters;
	
	/**
	 * client執行action發送通知給Server時,會帶一個unique的requestId
	 * 因為怕萬一某action的listener module有重複接收的情形.記錄此欄位值可確認是否重複記錄
	 */
	private String clientRequestId;
	
	private String cooperatorAccountId;
	
	private Integer actionCategoryId;
	
	private Integer progressInCategory;
	
	public Integer getActionId() {
		return actionId;
	}
	public void setActionId(Integer actionId) {
		this.actionId = actionId;
	}
	
	public String getActionRefDbId() {
		return actionRefDbId;
	}
	public void setActionRefDbId(String actionRefDbId) {
		this.actionRefDbId = actionRefDbId;
	}
	
	@Column(columnDefinition="text")
	public String getParameters() {
		return parameters;
	}
	public void setParameters(String parameters) {
		this.parameters = parameters;
	}
	
	public String getClientRequestId() {
		return clientRequestId;
	}
	public void setClientRequestId(String clientRequestId) {
		this.clientRequestId = clientRequestId;
	}
	public String getCooperatorAccountId() {
		return cooperatorAccountId;
	}
	public void setCooperatorAccountId(String cooperatorAccountId) {
		this.cooperatorAccountId = cooperatorAccountId;
	}
	public Integer getActionCategoryId() {
		return actionCategoryId;
	}
	public void setActionCategoryId(Integer actionCategoryId) {
		this.actionCategoryId = actionCategoryId;
	}
	public Integer getProgressInCategory() {
		return progressInCategory;
	}
	public void setProgressInCategory(Integer progressInCategory) {
		this.progressInCategory = progressInCategory;
	}	
	
}
